clipboard: Make sure G_TYPE_STRING is nul-terminated
authorBenjamin Otte <otte@redhat.com>
Mon, 26 Apr 2021 18:57:55 +0000 (20:57 +0200)
committerBenjamin Otte <otte@redhat.com>
Mon, 26 Apr 2021 19:32:57 +0000 (21:32 +0200)
commitf34e3c573ba1e18a52f5007d85a8bfc27c2e4f90
tree5a322d1ee35c1b58f320989fc41b169cc49a22b5
parent5710df685b0af9b7dd306dfba6c7e174e428950e
clipboard: Make sure G_TYPE_STRING is nul-terminated

When reading text, we need to check we terminate the G_TYPE_STRING
string with a null byte, because the clipboard does not guarantee one.

So just append a \0 to the stream.

Fixes #3899
gdk/gdkcontentdeserializer.c